package com.example.jdimust.ledger;

import com.google.gson.annotations.SerializedName;

import java.util.List;

/**
 * Author: MaZongyang
 * Date: 2021/5/19/0019 17:31
 * Description:
 */
public class LedgerCheckBean {

    @SerializedName("flag")
    private Boolean flag;
    @SerializedName("message")
    private String message;
    @SerializedName("result")
    private List<ResultDTO> result;

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<ResultDTO> getResult() {
        return result;
    }

    public void setResult(List<ResultDTO> result) {
        this.result = result;
    }

    public static class ResultDTO {
        @SerializedName("id")
        private Integer id;
        @SerializedName("ledgerName")
        private String ledgerName;
        @SerializedName("ledgerHash")
        private String ledgerHash;
        @SerializedName("ledgerUid")
        private Integer ledgerUid;
        @SerializedName("state")
        private String state;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getLedgerName() {
            return ledgerName;
        }

        public void setLedgerName(String ledgerName) {
            this.ledgerName = ledgerName;
        }

        public String getLedgerHash() {
            return ledgerHash;
        }

        public void setLedgerHash(String ledgerHash) {
            this.ledgerHash = ledgerHash;
        }

        public Integer getLedgerUid() {
            return ledgerUid;
        }

        public void setLedgerUid(Integer ledgerUid) {
            this.ledgerUid = ledgerUid;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }
    }
}
